#include <iostream>
#include <vector>
#include <string>
#include <math.h>

using namespace std;

int poorPigs(int buckets, int minutesToDie, int minutesToTest) {
    int pigs = 0;
    while(pow(minutesToTest / minutesToDie + 1, pigs) < buckets)
        pigs++;
    return pigs;
}

int main(){
    int buckets = 1000, minutesToDie = 15, minutesToTest = 60;
    cout << poorPigs(buckets, minutesToDie, minutesToTest) << endl;
    return 0;
}
